package ch.mueller.android.todo.model;

public class TodoItems {

    public static final String TABLE_NAME = "todoit_todoElements";

    public static final String TC_ID = "id";
    public static final String TC_TITLE = "title";
    public static final String TC_PRIORITY = "priority";

    private String title = "";
    private int priority = 0;
    private int id;

    public static String getTableCreateString() {

        String createString = "CREATE TABLE " + TABLE_NAME + " (" + TC_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
                + TC_TITLE + " TEXT," + TC_PRIORITY + " INTEGER);";

        return createString;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return this.title + " " + this.priority;
    }

}
